<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>科技未来 | 创新科技解决方案</title>
    <style>
        :root {
            --space-blue: #0A1A2F;
            --accent-green: #77ba00;
            --light-blue: #193b68;
            --light-text: #e6e6e6;
            --dark-text: #0A1A2F;
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', 'Roboto', sans-serif;
        }
        
        body {
            background-color: var(--space-blue);
            color: var(--light-text);
            overflow-x: hidden;
        }
        
        /* 导航栏样式 */
        nav {
            position: fixed;
            top: 0;
            width: 100%;
            padding: 1.5rem 3rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            z-index: 1000;
            background: rgba(10, 26, 47, 0.8);
            backdrop-filter: blur(10px);
        }
        
        .logo {
            font-size: 1.8rem;
            font-weight: 700;
            color: var(--light-text);
            text-decoration: none;
            display: flex;
            align-items: center;
        }
        
        .logo-accent {
            color: var(--accent-green);
            margin-left: 5px;
        }
        
        .nav-links {
            display: flex;
            list-style: none;
        }
        
        .nav-links li {
            margin-left: 2.5rem;
        }
        
        .nav-links a {
            color: var(--light-text);
            text-decoration: none;
            font-size: 1rem;
            font-weight: 500;
            position: relative;
            padding: 5px 0;
            transition: color 0.3s ease;
        }
        
        .nav-links a:hover {
            color: var(--accent-green);
        }
        
        .nav-links a::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 0;
            height: 2px;
            background-color: var(--accent-green);
            transition: width 0.3s ease;
        }
        
        .nav-links a:hover::after {
            width: 100%;
        }
        
        /* 粒子动画头部 */
        .hero {
            position: relative;
            height: 100vh;
            width: 100%;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            text-align: center;
            overflow: hidden;
        }
        
        .particles-container {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
        }
        
        .hero-content {
            position: relative;
            z-index: 2;
            max-width: 800px;
            padding: 0 2rem;
        }
        
        .hero h1 {
            font-size: 3.5rem;
            margin-bottom: 1.5rem;
            line-height: 1.2;
        }
        
        .hero p {
            font-size: 1.2rem;
            margin-bottom: 2rem;
            color: #b8c4d9;
        }
        
        .highlight {
            color: var(--accent-green);
        }
        
        .btn {
            display: inline-block;
            padding: 0.8rem 2rem;
            background: var(--accent-green);
            color: var(--dark-text);
            border: none;
            border-radius: 30px;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            text-decoration: none;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }
        
        .btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: rgba(255, 255, 255, 0.2);
            transition: left 0.3s ease;
        }
        
        .btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 20px rgba(119, 186, 0, 0.3);
        }
        
        .btn:hover::before {
            left: 100%;
        }
        
        /* 3D产品展示区 */
        .product-showcase {
            position: relative;
            height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            background: linear-gradient(to bottom, var(--space-blue), #0d2342);
            overflow: hidden;
        }
        
        .product-container {
            position: relative;
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .product-info {
            position: absolute;
            bottom: 15%;
            left: 10%;
            max-width: 400px;
            z-index: 5;
        }
        
        .product-info h2 {
            font-size: 2.5rem;
            margin-bottom: 1rem;
        }
        
        .product-info p {
            margin-bottom: 1.5rem;
            color: #b8c4d9;
        }
        
        .canvas-container {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
        }
        
        /* 特点卡片区域 */
        .features {
            padding: 6rem 3rem 8rem;
            background-color: var(--light-blue);
            position: relative;
            z-index: 5;
        }
        
        .section-title {
            text-align: center;
            font-size: 2.5rem;
            margin-bottom: 3rem;
        }
        
        .features-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 2rem;
            max-width: 1200px;
            margin: 0 auto;
        }
        
        .feature-card {
            background: rgba(10, 26, 47, 0.6);
            border-radius: 10px;
            padding: 2rem;
            transition: transform 0.4s ease, box-shadow 0.4s ease;
            border: 1px solid rgba(119, 186, 0, 0.2);
            position: relative;
            overflow: hidden;
            cursor: pointer;
        }
        
        .feature-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 4px;
            background: var(--accent-green);
            transform: scaleX(0);
            transform-origin: left;
            transition: transform 0.4s ease;
        }
        
        .feature-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
        }
        
        .feature-card:hover::before {
            transform: scaleX(1);
        }
        
        .feature-icon {
            font-size: 2.5rem;
            margin-bottom: 1.5rem;
            color: var(--accent-green);
        }
        
        .feature-card h3 {
            font-size: 1.5rem;
            margin-bottom: 1rem;
        }
        
        .feature-card p {
            color: #b8c4d9;
            line-height: 1.6;
        }
        
        /* 页脚样式 */
        footer {
            background-color: rgba(7, 18, 32, 0.9);
            padding: 5rem 3rem 3rem;
            margin-top: 3rem;
            position: relative;
            z-index: 10;
            transform: translateZ(0);
        }
        
        .footer-content {
            display: flex;
            justify-content: space-between;
            max-width: 1200px;
            margin: 0 auto;
        }
        
        .footer-col {
            flex: 1;
            margin-right: 2rem;
        }
        
        .footer-col:last-child {
            margin-right: 0;
        }
        
        .footer-col h4 {
            font-size: 1.2rem;
            margin-bottom: 1.5rem;
            color: var(--accent-green);
        }
        
        .footer-col p, .footer-col li {
            color: #b8c4d9;
            margin-bottom: 0.5rem;
            line-height: 1.6;
        }
        
        .footer-col ul {
            list-style: none;
        }
        
        .footer-col a {
            color: #b8c4d9;
            text-decoration: none;
            transition: color 0.3s ease;
        }
        
        .footer-col a:hover {
            color: var(--accent-green);
        }
        
        .copyright {
            text-align: center;
            margin-top: 3rem;
            padding-top: 1.5rem;
            border-top: 1px solid rgba(184, 196, 217, 0.2);
            color: #b8c4d9;
        }
        
        /* 平滑滚动设置 */
        html {
            scroll-behavior: smooth;
        }
        
        /* 添加滚动过渡效果 */
        .scroll-transition {
            opacity: 0;
            transform: translateY(50px);
            transition: opacity 0.8s ease, transform 0.8s ease;
        }
        
        .scroll-transition.visible {
            opacity: 1;
            transform: translateY(0);
        }
        
        /* 响应式设计 */
        @media (max-width: 768px) {
            nav {
                padding: 1rem 1.5rem;
            }
            
            .nav-links {
                display: none;
            }
            
            .hero h1 {
                font-size: 2.5rem;
            }
            
            .features-grid {
                grid-template-columns: 1fr;
            }
            
            .footer-content {
                flex-direction: column;
            }
            
            .footer-col {
                margin-right: 0;
                margin-bottom: 2rem;
            }
        }
    </style>
</head>
<body>
    <!-- 导航栏 -->
    <nav>
        <a href="#" class="logo">TECH<span class="logo-accent">FUTURE</span></a>
        <ul class="nav-links">
            <li><a href="#">首页</a></li>
            <li><a href="#">产品</a></li>
            <li><a href="#">解决方案</a></li>
            <li><a href="#">关于我们</a></li>
            <li><a href="#">联系我们</a></li>
        </ul>
    </nav>
    
    <!-- 带粒子动画的头部 -->
    <section class="hero">
        <div class="particles-container" id="particles-js"></div>
        <div class="hero-content scroll-transition visible">
            <h1>突破科技边界，<span class="highlight">引领未来创新</span></h1>
            <p>我们提供尖端技术解决方案，助力企业实现数字化转型，开创智能化未来</p>
            <a href="#" class="btn">了解更多</a>
        </div>
    </section>
    
    <!-- 全屏3D产品展示区 -->
    <section class="product-showcase">
        <div class="product-container">
            <div class="canvas-container" id="product-canvas"></div>
            <div class="product-info scroll-transition">
                <h2>下一代<span class="highlight">AI智能平台</span></h2>
                <p>采用最先进的算法与架构，提供前所未有的数据分析与决策支持能力，让您的业务更具前瞻性</p>
                <a href="#" class="btn">产品详情</a>
            </div>
        </div>
    </section>
    
    <!-- 三列悬停动画特点卡片 -->
    <section class="features">
        <h2 class="section-title scroll-transition">我们的<span class="highlight">核心优势</span></h2>
        <div class="features-grid">
            <div class="feature-card scroll-transition">
                <div class="feature-icon">⚡</div>
                <h3>高性能计算</h3>
                <p>采用分布式架构与量子级算法，处理速度提升10倍，支持百万级并发请求，保证您的系统永远领先一步</p>
            </div>
            <div class="feature-card scroll-transition">
                <div class="feature-icon">🔒</div>
                <h3>安全防护体系</h3>
                <p>多层次加密技术与智能监控系统，全方位保障数据安全，符合国际顶级安全标准，让您的信息固若金汤</p>
            </div>
            <div class="feature-card scroll-transition">
                <div class="feature-icon">📊</div>
                <h3>智能数据分析</h3>
                <p>深度学习模型实时分析海量数据，提取关键商业洞察，帮助企业精准决策，抢占市场先机</p>
            </div>
        </div>
    </section>
    
    <!-- 页脚 -->
    <footer>
        <div class="footer-content">
            <div class="footer-col scroll-transition">
                <h4>关于我们</h4>
                <p>TECHFUTURE是全球领先的科技创新企业，致力于为各行业提供前沿技术解决方案，助力企业实现数字化转型与智能化升级</p>
            </div>
            <div class="footer-col scroll-transition">
                <h4>快速链接</h4>
                <ul>
                    <li><a href="#">产品服务</a></li>
                    <li><a href="#">解决方案</a></li>
                    <li><a href="#">成功案例</a></li>
                    <li><a href="#">技术博客</a></li>
                </ul>
            </div>
            <div class="footer-col scroll-transition">
                <h4>联系我们</h4>
                <ul>
                    <li>邮箱: contact@techfuture.com</li>
                    <li>电话: +86 010-12345678</li>
                    <li>地址: 北京市朝阳区科技园区88号未来大厦</li>
                </ul>
            </div>
        </div>
        <div class="copyright scroll-transition">
            © 2025 TECHFUTURE 版权所有
        </div>
    </footer>
    
    <!-- 引入外部JS库 -->
    <script src="https://cdnjs.cloudflare.com/ajax/libs/particles.js/2.0.0/particles.min.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r128/three.min.js"></script>
    <script>
        // 初始化粒子效果
        document.addEventListener('DOMContentLoaded', function() {
            particlesJS('particles-js', {
                "particles": {
                    "number": {
                        "value": 80,
                        "density": {
                            "enable": true,
                            "value_area": 800
                        }
                    },
                    "color": {
                        "value": "#77ba00"
                    },
                    "shape": {
                        "type": "circle",
                        "stroke": {
                            "width": 0,
                            "color": "#000000"
                        },
                        "polygon": {
                            "nb_sides": 5
                        }
                    },
                    "opacity": {
                        "value": 0.5,
                        "random": false,
                        "anim": {
                            "enable": false,
                            "speed": 1,
                            "opacity_min": 0.1,
                            "sync": false
                        }
                    },
                    "size": {
                        "value": 3,
                        "random": true,
                        "anim": {
                            "enable": false,
                            "speed": 40,
                            "size_min": 0.1,
                            "sync": false
                        }
                    },
                    "line_linked": {
                        "enable": true,
                        "distance": 150,
                        "color": "#77ba00",
                        "opacity": 0.4,
                        "width": 1
                    },
                    "move": {
                        "enable": true,
                        "speed": 2,
                        "direction": "none",
                        "random": false,
                        "straight": false,
                        "out_mode": "out",
                        "bounce": false,
                        "attract": {
                            "enable": false,
                            "rotateX": 600,
                            "rotateY": 1200
                        }
                    }
                },
                "interactivity": {
                    "detect_on": "canvas",
                    "events": {
                        "onhover": {
                            "enable": true,
                            "mode": "grab"
                        },
                        "onclick": {
                            "enable": true,
                            "mode": "push"
                        },
                        "resize": true
                    },
                    "modes": {
                        "grab": {
                            "distance": 140,
                            "line_linked": {
                                "opacity": 1
                            }
                        },
                        "bubble": {
                            "distance": 400,
                            "size": 40,
                            "duration": 2,
                            "opacity": 8,
                            "speed": 3
                        },
                        "repulse": {
                            "distance": 200,
                            "duration": 0.4
                        },
                        "push": {
                            "particles_nb": 4
                        },
                        "remove": {
                            "particles_nb": 2
                        }
                    }
                },
                "retina_detect": true
            });
            
            // 初始显示第一屏内容
            document.querySelectorAll('.hero .scroll-transition').forEach(el => {
                el.classList.add('visible');
            });
            
            // 初始化滚动检测
            checkScroll();
        });

        // 简化的3D产品展示
        document.addEventListener('DOMContentLoaded', function() {
            // 设置场景、相机和渲染器
            const scene = new THREE.Scene();
            const camera = new THREE.PerspectiveCamera(75, window.innerWidth / window.innerHeight, 0.1, 1000);
            
            const renderer = new THREE.WebGLRenderer({ alpha: true, antialias: true });
            renderer.setSize(window.innerWidth, window.innerHeight);
            renderer.setClearColor(0x000000, 0);
            document.getElementById('product-canvas').appendChild(renderer.domElement);
            
            // 添加灯光
            const ambientLight = new THREE.AmbientLight(0xffffff, 0.5);
            scene.add(ambientLight);
            
            const directionalLight = new THREE.DirectionalLight(0x77ba00, 1);
            directionalLight.position.set(5, 5, 5);
            scene.add(directionalLight);
            
            // 创建一个简单的几何体代表产品
            const geometry = new THREE.IcosahedronGeometry(5, 1);
            const material = new THREE.MeshPhongMaterial({
                color: 0x77ba00,
                wireframe: true,
                emissive: 0x77ba00,
                emissiveIntensity: 0.2,
                transparent: true,
                opacity: 0.8
            });
            
            const product = new THREE.Mesh(geometry, material);
            scene.add(product);
            
            // 添加一些粒子系统围绕在产品周围
            const particlesGeometry = new THREE.BufferGeometry();
            const particlesCnt = 500;
            const posArray = new Float32Array(particlesCnt * 3);
            
            for(let i = 0; i < particlesCnt * 3; i++) {
                posArray[i] = (Math.random() - 0.5) * 20;
            }
            
            particlesGeometry.setAttribute('position', new THREE.BufferAttribute(posArray, 3));
            
            const particlesMaterial = new THREE.PointsMaterial({
                size: 0.05,
                color: 0x77ba00
            });
            
            const particlesMesh = new THREE.Points(particlesGeometry, particlesMaterial);
            scene.add(particlesMesh);
            
            // 设置相机位置
            camera.position.z = 15;
            
            // 创建动画循环
            function animate() {
                requestAnimationFrame(animate);
                
                product.rotation.x += 0.005;
                product.rotation.y += 0.01;
                
                particlesMesh.rotation.x += 0.001;
                particlesMesh.rotation.y += 0.002;
                
                renderer.render(scene, camera);
            }
            
            animate();
            
            // 调整窗口大小时重设渲染器尺寸
            window.addEventListener('resize', function() {
                const newWidth = window.innerWidth;
                const newHeight = window.innerHeight;
                
                camera.aspect = newWidth / newHeight;
                camera.updateProjectionMatrix();
                
                renderer.setSize(newWidth, newHeight);
            });
        });
        
        // 监听滚动事件，检测元素是否在可视区域内
        function checkScroll() {
            const elements = document.querySelectorAll('.scroll-transition');
            
            elements.forEach(element => {
                const elementPosition = element.getBoundingClientRect();
                const elementTop = elementPosition.top;
                const elementBottom = elementPosition.bottom;
                const elementVisible = 150; // 元素顶部距离视口顶部的距离阈值
                
                // 检查元素是否在视口内
                if (elementTop < window.innerHeight - elementVisible && elementBottom > 0) {
                    // 元素进入视口，添加可见类
                    element.classList.add("visible");
                } else {
                    // 元素离开视口，移除可见类，以便下次滚动时再次触发动画
                    element.classList.remove("visible");
                }
            });
        }
        
        // 添加滚动事件监听
        window.addEventListener('scroll', function() {
            checkScroll();
            
            const scrollY = window.scrollY;
            
            // 更平滑的视差效果 - 减少层叠冲突
            document.querySelector('.hero').style.transform = `translateY(${scrollY * 0.05}px)`;
            document.querySelector('.product-showcase').style.transform = `translateY(${scrollY * -0.02}px)`;
            
            // 不再对整个 section 应用视差效果，避免底部重叠
        });
    </script>
</body>
</html>